find the x and y intercepts from a polynomial